<template>
  <div class="bootom-bar">
    <div class="left">
      <div class="a">
        <div class=""><img src="~assets/img/shoucang/kefu.svg" alt=""></div>
        <div class="font">客服</div>
      </div>
      <div class="a">
        <div><img src="~assets/img/shoucang/dianpu.svg" alt=""></div>
        <div class="font">店铺</div>
      </div>
      <div class="a">
        <div><img src="~assets/img/shoucang/shoucang1.svg" alt=""></div>
        <div class="font">收藏</div>
      </div>
    </div>
    <div class="center" @click="showCart()">加入购物车</div>
    <div class="right">购买</div>
  </div>
</template>

<script>
export default {
  name: 'detailBottomBar',
  methods:{
    showCart(){
      this.$emit('showCart')
    }
  }
}
</script>

<style scoped>
  .bootom-bar{
    height: 49px;
    background-color: #fff;
    position: fixed;
    right: 0px;
    left: 0px;
    bottom:0px;
    display: flex;
  }
    .left{
      flex: 2;
      display: flex;
      justify-content: space-between;
    }
      .left .a{
        padding: 0px 16px;
      }
        .left .a img{
          width:25px;
          height: 25px;
        }
        .font{
          width: 30px;
          height: 14px;
          font-size: 12px;
          margin-top: -35px;
        }
    .center{
      flex: 1;
      background-color: yellow;
      line-height: 49px;
      text-align: center;
      color: black;
    }
    .right{
      flex: 1;
      background-color: var(--color-high-text);
      color: #fff;
      text-align: center;
      line-height: 49px;
    }
</style>